#include "Slice.h"

Slice::Slice(Texture& t, unsigned int height, const Vector& p1, const Vector& p2): texture(t), sliceheight(height), texturep1(p1), texturep2(p2)
{
	
}

Slice::~Slice()
{
}

unsigned int Slice::GetHeight() const
{
	return sliceheight;
}

const Pixel& Slice::GetPixel(unsigned int y) const
{
	Pixel p;
	// convert y to texturex,texturey and return pixel texture[texturex, texturey]


	return p;
}

const Pixel& Slice::operator()(unsigned int y) const
{
	return GetPixel(y);
}